<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>element-ui 组件二次封装</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="./element-ui-2.15.10/index.css"/>
    <script src="./js/vue.min.js"></script>
    <script src="./js/http-vue-loader.js"></script>
    <!-- 引入组件库 -->
    <script src="./element-ui-2.15.10/index.js"></script>
</head>
<body>
<div id="app">
    <mytable ref="mytable" :table-data="tableData"></mytable>
</div>
</body>
<script type="text/javascript">
    Vue.use(httpVueLoader);
    const vm = new Vue({
        components: {
            mytable: "url:./mytable.vue",
        },
        el: "#app",
        data: {
            that: this,
            test: "hello",
            tableData: [
                {
                    date: "2016-05-02",
                    name: "王小虎",
                    address: "上海市普陀区金沙江路 1518 弄",
                },
                {
                    date: "2016-05-04",
                    name: "王小虎",
                    address: "上海市普陀区金沙江路 1517 弄",
                },
                {
                    date: "2016-05-01",
                    name: "王小虎",
                    address: "上海市普陀区金沙江路 1519 弄",
                },
                {
                    date: "2016-05-03",
                    name: "王小虎",
                    address: "上海市普陀区金沙江路 1516 弄",
                },
            ],
        },
    });
</script>
</html>
